<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>生成器</title>
</head>
<body>
  <script>
    //生成器其实就是一个特殊的函数
    //异步编程  纯回调函数  node  fs   ajax  mongodb
    //函数代码的分隔符
    function * gen(){
      console.log("hello  generator");
    }
s
    let iterator = gen();
    iterator.next();
  
  
  </script>
</body>
</html>